<!--
 * @FilePath     : /study_code/css/transition-hover.html
 * @Description  : hover 触发的 过渡
 * @Date         : 2025-04-27 16:47:45
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-04-27 16:58:12
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="" />
    <style>
      .box {
        width: 100px;
        height: 40px;
        background: lightblue;
      }

      .box1 {
        transition: all 2s linear;
      }

      .box1:hover {
        width: 400px;
      }

      .box2 {
        /* transition: all 2s linear; */
      }

      .box2:hover {
        width: 400px;
        transition: all 2s linear;
      }
    </style>
  </head>
  <body>
    <div class="box box1">内容</div>

    <hr />
    <div class="box box2">内容</div>
  </body>
</html>

